package com.example.asapp.demo.curd;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.UUID;

@Service
public class CurdService {

    @Autowired
    CurdDao curdDao;

    public List<Curd> findAll() {
        return curdDao.findAll();
    }

    public Curd saveOne(Curd curd) {
        return curdDao.save(curd);
    }

    public void deleteByPrimary(Integer id) {
      curdDao.deleteById(id);
    }
}
